package org.andes.kownledge;

import java.io.InputStream;
import java.util.List;

import lisp.SExp;

/**
 * Created by IntelliJ IDEA.
 * User: wenfeix
 * Date: 2011-2-4
 * Time: 15:45:31
 * To change this template use File | Settings | File Templates.
 */
public class qvar {

    private String Index;
    private String var;
    private String exp;
    private String value;
    private String units;
    private String marks;
    private String nodes;
    
    
    /*(defun qvlist->qvar (Q G)
    		  "Convert the list form of qvar qvlist L to a Qvar."
    		  (make-qvar :index (nth 1 Q)
    			     :var (nth 2 Q)
    			     :exp (nth 3 Q)
    			     :value (nth 4 Q)
    			     :units (nth 5 Q)
    			     :marks (nth 6 Q)
    			     :nodes (collect-gindicies->nodes (nth 7 Q) G)))
*/
    public void readContent(SExp sexp,BubbleGraph g) throws Exception {

         //SExp sexp=SExp.INPUT(S);
        List<SExp> L= sexp.toList();
        int index=1;
         Index=L.get(index++).GetValue();
        var=L.get(index++).GetValue();
        exp=L.get(index++).GetValue();
        value=L.get(index++).GetValue();
        units=L.get(index++).GetValue();
        marks=L.get(index++).GetValue();
        nodes=L.get(index++).GetValue();


    }
}
